﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TANKWAR_alpha
{
    class ObjElement
    {
        private GameGDI gameDriver;
        private double left;                          //element object's X coordination           
        private double top;                          //element object's Y coordination 
        private int width;
        private int height;
        private bool life;                     //element object's lifespan
        private int type;                       //element's type：0 for player,1 for robot
        private double speed;                    //element's speed
        private MoveDirection direction;


        /*******the following is properties***********/

        public GameGDI GameDriver
        {
            get { return gameDriver; }
            set { gameDriver=value; }
        }
        
        public double  Left
        {
            get { return left; }
            set { left = value; }
        }

        public double  Top
        {
            get { return top; }
            set { top = value; }
        }

        public int Width
        {
            get { return width; }
            set { width = value; }
        }

        public int Height
        {
            get { return height; }
            set { height = value; }
        }

        public bool Life
        {
            get { return life; }
            set { life = value; }
        }

        public int Type
        {
            get { return type; }
            set { type = value; }
        }

        public double  Speed
        {
            get { return speed; }
            set { speed = value; }
        }

        public MoveDirection Direction
        {
            get { return direction; }
            set { direction = value; }
        }
    }
}
